package com.backstage.service;

import com.backstage.pojo.Chatroom;
import com.backstage.utils.PageBean;

import java.util.List;

public interface ChatroomService {
    int selectChatroomTotal();

    int selectChatroomScopeId(Integer id);

    int selectInsertNewChatroom(Chatroom record);

    List<Chatroom> selectChatroomScopeIdList(Integer scopeId, Integer userId);

    Chatroom selectChatroomGetId(Integer id);

    //查询当前用户是否在 该区域，或是自己开设的聊天室
    Chatroom selectChatroomHas(Integer scopeId, Integer userId, Integer chatid);


    //局部字段更新
    int selectChatroomUpdate(Chatroom record);

    PageBean<Chatroom> selectChatroomList(Integer page, Integer pageSize, String keyWord);
}
